import { ElMessage as Message } from 'element-plus'




// 表单校验不通过
export function formErrorTip(obj) {
	for (const key in obj) {
		for (let i = 0; i < obj[key].length; i++) {
			return Message.error(obj[key][i].message)
		}
	}
}


export function successInfo(msg) {
	Message({
		message: msg,
		type: 'success',
	})
}

export function errorInfo(msg) {
	Message({
		message: msg,
		type: 'error',
	})
}


